Skip to content

Settings, System: newer permissions are an optional admin item, never a blocked update - #338

Merged
nambok merged 3 commits into
mainfrom
self-host-permissions-item
Nov 8, 2026
Merged

nambok merged 3 commits into
mainfrom
self-host-permissions-item

Conversation

@nambok

@nambok nambok commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Settings, System no longer shows an update as blocked for an AWS admin when a release changes the install's permission limit. The update applies as usual. A newer permission limit is its own optional Permissions item with one link, and a rollback AWS couldn't finish is shown with what CoderHelm did about it. Pairs with CoderHelm/coderhelm-platform#519.

Changes

  • components/native-access.tsx:
    • NativeAccessCard: "Permissions: optional, for an AWS admin". It shows what the change adds in plain words and one Open in the AWS console link (the access stack's quick-create), plus a note when the access stack already exists from an earlier change. It is hidden once applied.
    • NativeRecoveryCard: a stopped rollback that CoderHelm is finishing, or one it couldn't finish safely, with the reason and a link to the stack's events.
  • settings/system/page.tsx renders both under the Version status.
  • native-update.tsx:
    • a prepared update that keeps the install's own deploy role and boundaries says so (held);
    • "needs an AWS admin" now appears only for the older stack without the deploy role, the one case where a console Execute runs with the admin's own permissions.
  • lib/api.ts: NativeAccess, NativeRecovery, and held/preflight on the prepared update. These come from the updater's status, passed through by the gateway; the OpenAPI fields are unchanged.
  • e2e:
    • the old "goes to the AWS console" test is replaced by "newer permissions are a separate, optional item; the update applies without them";
    • new test: an applied item shows nothing, and a stuck rollback says what stopped it.

Verification

  • npx tsc --noEmit -p .: clean
  • npm run lint: UI lint passed, no hardcoded hosted addresses
  • npm run check:openapi: matches the platform's main
  • npx playwright test e2e/selfhost.spec.ts -g "System:": 18 passed

@nambok nambok closed this Nov 8, 2026
@nambok nambok reopened this Nov 8, 2026
@nambok nambok closed this Nov 8, 2026
@nambok nambok reopened this Nov 8, 2026
…dmin, never a blocked update; a stopped rollback says what happened
…dater makes them; drop the unrelated build-info change
@nambok
nambok force-pushed the self-host-permissions-item branch from 92ffe99 to 9683112 Compare November 8, 2026 18:05
@nambok nambok closed this Nov 8, 2026
@nambok nambok reopened this Nov 8, 2026
@nambok
nambok merged commit 9859b2a into main Nov 8, 2026
13 of 20 checks passed
@nambok
nambok deleted the self-host-permissions-item branch November 8, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant